<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of FormMoisService
 *
 * @author ingeni
 */
class FormMoisService {
    //put your code here
    public function display(ContextExecution $p_contexte) {
        $numeroCompte = $p_contexte->m_dataRequest->getData('numeroCompte');
        
        $listReleves = new ListDynamicObject();
        $listReleves->name = 'ListeAnnee';
        $listReleves->request("SELECT DISTINCT substr( date, 1, 4 ) as annee FROM operation WHERE nocompte = '$numeroCompte' order by annee asc");
        $p_contexte->addDataBlockRow($listReleves);
    }
}

?>
